{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>题库</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="signin.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="container">

      <form class="form-signin" action="{%url 'question_bank:Save' %}" method="post">
        {% csrf_token %}
        <h2 class="form-signin-heading">题库记录</h2>
        {% if error %}
        <h4 style="color:red;">{{error}}</h4>
        {% endif %}
        
        {% if suc %}
        <h4 style="color:blue;">{{suc}}</h4>
        {% endif %}
        <!-- <div class="dropdown">
            <button type="button" class="btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">请选择题型
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                {% for qtype in ques_type %}
                <li role="presentation">
                    <a role="menuitem" tabindex="-1" href=" ">{{qtype.question_type}}</ a>
                </li>
                {% endfor %}
            </ul>
        </div> -->
        <select name="question_dtyp" id="">
        	{% for qtype in ques_type %}
        	<option value="{{qtype.question_type}}">
        	{{qtype.question_type}}     
        	</option>
        	{% endfor %}
        </select>
        <!-- <label for="inputName" class="sr-only">姓名</label> -->
        <!-- <input type="text" id="inputName" name="question_dtyp" class="form-control" placeholder="请输入题型" required autofocus> -->
        <label for="inputGithub" class="sr-only">GitHub账号</label>
        <input type="text" id="inputGithub" name="question" class="form-control" placeholder="请输入题目" required>
        <label for="inputGitee" class="sr-only">Gitee账号</label>
        <input type="text" id="inputGitee" name="choice" class="form-control" placeholder="请输入题目选项" >
        <label for="inputCoding" class="sr-only">coding.net账号</label>
        <input type="text" id="inputCoding" name="answer" class="form-control" placeholder="请输入正确答案" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">确定提交</button>
      </form>

    </div> <!-- /container -->

	<script type="text/javascript" src="{% static 'question_bank/js/jquery-3.3.1.min.js' %}"></script>
<!-- Bootstrap部分： -->
<script type="text/javascript" src="{% static 'question_bank/js/bootstrap.min.js' %}"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
